<?php
/* @var $this SiteController */
/* @var $model LoginForm */
/* @var $form CActiveForm  */

$this->pageTitle=Yii::app()->name . ' - Connexion';
?>

<div id="accueil" class="container">
	<div class="row">
		<div class="col-lg-12">
			<div class="page-header">
				<h1 class="selavenir">SELAVENIR</h1>
				<h1 class="selavenirsmall"><small>Système d'Echange Local</small></h1>
			</div>
		</div>
	</div>
</div>
	
	<div class="row">
		<h1 class="text-center">Connexion</h1>
		<div class="col-lg-9 col-lg-offset-3">
			
			<div class="form">
			
				<?php $form=$this->beginWidget('CActiveForm', array(
					'id'=>'login-form',
					'htmlOptions'=>array('class'=>'form-horizontal'),
					'enableAjaxValidation'=>false,
				)); ?>
			
				<?php echo $form->errorSummary($model,NULL,NULL,array("class"=>"alert alert-danger")); ?>
			
				<div class="form-group<?php if ($model->getErrors('pseudo')) echo " has-error";?>">
					<?php echo $form->labelEx($model,'pseudo',array("class"=>"col-lg-3 control-label")); ?>
					<div class="row"><div class="col-lg-5"><?php echo $form->textField($model,'pseudo',array("class"=>"form-control","placeholder"=>"Saisissez votre pseudo",'size'=>45,'maxlength'=>45)); ?></div></div>
				</div>
				
				<div class="form-group<?php if ($model->getErrors('password')) echo " has-error";?>">
					<?php echo $form->labelEx($model,'password',array("class"=>"col-lg-3 control-label")); ?>
					<div class="row"><div class="col-lg-5"><?php echo $form->passwordField($model,'password',array("class"=>"form-control","placeholder"=>"Saisissez votre mot de passe",'size'=>45,'maxlength'=>45)); ?></div></div>
				</div>
								
				<div class="form-group">
					<div class="col-lg-5 col-lg-offset-3">
						<div class="btn-group" data-toggle="buttons">
							<label id="label_rsconnect" class="btn btn-default">
							<?php echo $form->checkBox($model,'rememberMe',array("id"=>"checkboxadmin_sel","name"=>"rememberMe","uncheckValue"=>NULL,"value"=>"1")); ?> Rester connecté
						</label>
						</div>
					</div>
				</div>
				
				<div class="form-group">
					<div class="col-lg-offset-3 col-lg-5">
						<button type="submit" class="btn btn-primary btn-lg"><span class="fa fa-sign-in"></span> Connexion</button>
					</div>
				</div>
			
			<?php $this->endWidget(); ?>
			</div><!-- form -->
		</div>
	</div>